package zhtt.demo01;

import java.util.List;

/**
 * Created by zhtt on 2017/4/29.
 */
public class Dept {

    private Integer id;

    private String name;

    private List<User> userList;

    public Dept() {
    }

    public Dept(String name) {
        this.name = name;
    }

    public Dept(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public List<User> getUserList() {
        return userList;
    }

    public void setUserList(List<User> userList) {
        this.userList = userList;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", userList='" + (userList==null?"NULL":userList.size()) + '\'' +
                '}';
    }
}
